package com.suray.wcs.service.system.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.suray.wcs.service.enums.DetailProcess;
import com.suray.wcs.service.enums.PrecessStatus;
import com.suray.wcs.service.system.entity.TaskDetailDB;

import java.util.List;

public interface TaskDetailService extends IService<TaskDetailDB> {


    List<TaskDetailDB> queryByTaskId(Integer taskId);

    void updateTaskDetailCompleteTime(TaskDetailDB taskDetailDB);

    void updateTaskDetailCompleteTime(TaskDetailDB taskDetailDB, PrecessStatus precessStatus);

    TaskDetailDB getTaskDetail(Integer taskId, DetailProcess process, String parentId, String start, String end,
                               PrecessStatus status, String deviceInfo, String operation);

    TaskDetailDB buildTask(Integer taskId, DetailProcess process, String parentId, String start, String end,
                           PrecessStatus status, String deviceInfo, String operation);

    void deleteTaskDetailByTaskId(List<Integer> taskIds);
}
